package com.bkgy.controller.tbtcmthkjudge.controller;

import com.bkgy.controller.tbtcmthkjudge.service.TbTcmThkJudgeService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Author:Lipeng Zhao
 * Description:
 *
 * @Date:Created In 14:37 2025/5/19
 */
@RestController
@RequestMapping("/tbTcmThkJudge")
public class TbTcmThkJudgeController {

    @Autowired
    private TbTcmThkJudgeService tbTcmThkJudgeService;

    /**
     * 分页查看记录
     * @param data json字符串
     */
    @CrossOrigin
    @RequestMapping(value = {"/findByPage"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findDataByPage(@RequestBody String data) {
        return tbTcmThkJudgeService.findDataByPage(data);
    }

    /**
     * 分页查看酸轧厚度判别记录
     * @param data json字符串
     */
    @CrossOrigin
    @RequestMapping(value = {"/findThkJudgeByPage"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findThkJudgeByPage(@RequestBody String data) {
        return tbTcmThkJudgeService.findThkJudgeByPage(data);
    }

    @CrossOrigin
    @RequestMapping(value = {"/findNoPage"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findNoPage(@RequestBody String data) {
        return tbTcmThkJudgeService.findDataNoPage(data);
    }


    /**
     * 酸轧厚度板型异常明细
     * @param data json字符串
     */
    @CrossOrigin
    @RequestMapping(value = {"/findByThkFlagAndWidFlag"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData findByThkFlagAndWidFlag(@RequestBody String data) {
        return tbTcmThkJudgeService.findByThkFlagAndWidFlag(data);
    }

    /**
     * 酸轧厚度板型异常明细
     * @param data json字符串
     */
    @CrossOrigin
    @RequestMapping(value = {"/tbTcm2ThkJudge"}, method = RequestMethod.POST)
    @ResponseBody
    public ResultData tbTcm2ThkJudge(@RequestBody String data) {
        return tbTcmThkJudgeService.tbTcm2ThkJudge(data);
    }


}
